-- GENERATED SPELL FOR [Drakkari Inciter] --


function spell0_29874(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29874', 588, 1)
end

function spell1_29874(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29874', 660, 1)
end

function Sorts_29874(pUnit, Event)
local choix_sorts_29874 = math.random(0, 1)
if choix_sorts_29874 == 0 then
pUnit:RegisterEvent('spell0_29874', 1, 1)
end
if choix_sorts_29874 == 1 then
pUnit:RegisterEvent('spell1_29874', 1, 1)
end
end

function mob29874_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29874', math.random(1500, 3000), 1)
end

function mob29874_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29874_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29874_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29874, 1, 'mob29874_Action')
RegisterUnitEvent(29874, 2, 'mob29874_Leave')
RegisterUnitEvent(29874, 3, 'mob29874_Kill')
RegisterUnitEvent(29874, 4, 'mob29874_Die')
